<?php

namespace app\admin\controller\feedback;

use app\common\controller\Backend;
use app\index\model\Apply;
use think\Db;

/**
 * 会员管理
 *
 * @icon fa fa-user
 */
class Feedback extends Backend
{

    protected $relationSearch = true;

    /**
     * User模型对象
     */
    protected $model = null;

    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('ApplyBet');
    }

    /**
     * 查看
     */
    public function index()
    {
        // 统计
        if ( $this->request->isAjax() ){
            $ret = collection($this->model->group('feedback')->field('count(`feedback`) total,feedback')->select())->toArray();
            $this->success('','',$ret);
        }
        return $this->view->fetch('');
    }



}
